package com.ysd.lis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ysd.common.Result;
import com.ysd.common.dto.OrganizationDTO;
import com.ysd.lis.entity.SysUser;
import com.ysd.lis.request.*;

import java.util.List;

/**
 * <p>
 * cold_chain.t_user 服务类
 * </p>
 *
 * @author peng
 * @since 2021-10-08
 */
public interface SysUserService extends IService<SysUser> {
    Result getlist(userPageParam userPageParam);

    Result getUserById(SysUser sysUser);

    Result removeUserById(SysUser sysUser);

    Result getOrganization();

    Result getRole();

    Result getOrgDepartment(OrgDepartmentParam orgDepartmentParam);

    List<String> getUserRolePermissions(String userId);

    SysUser getPassword(String username);

    Result findUserRoleMenuPermissionList(String userId, String defalMenuId);

    Result findUserRoleMenuPermissionList(String userId);

    Result addUser(userAddParam user);

    Result findUserSimple(String id);

    Result eiditUser(userAddParam user);

    Result userDeleteById(userDeleteParam userDelete);

    Result changePassword(changePasswordParam changePassword);

    Result getPersionByDeptId(String deptId, Integer pageSize, Integer pageIndex);

    Result getUserInfoList(SysUser user);

    /*只查询检验医师*/
    Result getTestUserInfoList(SysUser user);

    /*只查询审核医师*/
    Result getChkUserInfoList(SysUser user);

    Result findAllUserListByOrgDept(userPageParam userPageParam);

    Result editUserInfo(userAddParam user);

    Result addUserInfo(userAddParam user);

    Result deleteUserById(String id);

    Result editUserInfo2(userAddParam user);

    Result getUserPageList(userPageParam pageParam);

    Result importUserByEmploy(ImportUserAddParam importUserAddParam);

    Result getUserNameAndOrgName(String userName);

    Result checkEmpowerNum(String username, String empowerNum);

    Result getSignatureFilePath(String id);

    Result uploadSignatureFile(String id, String signatureUrl);

    Result syncUserInfo(OrganizationDTO organizationDTO);

}
